package cn.sumpu.app.guoguojie.biz;

import java.util.List;
import cn.sumpu.app.guoguojie.domain.CmsContent;
import cn.sumpu.app.guoguojie.domain.Comment;
import cn.sumpu.app.guoguojie.domain.Discuss;
import cn.sumpu.app.guoguojie.domain.DiscussTag;
import cn.sumpu.app.guoguojie.domain.DiscussTagDis;
import cn.sumpu.app.guoguojie.domain.DoingPictorial;
import cn.sumpu.app.guoguojie.domain.Member;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;
import cn.sumpu.app.guoguojie.util.PageModel;

public interface DiscussBiz {

    public void insertDiscuss(Discuss discuss, String picTitle) throws AppBusinessException;

    public void updateDiscuss(Discuss discuss) throws AppBusinessException;

    public PageModel getDiscussList(Integer page, Integer pagesize) throws AppBusinessException;

    public Discuss getDiscuss(String id) throws AppBusinessException;

    public PageModel getCommentList(String id, Integer page) throws AppBusinessException;

    public void insertComment(Comment comment) throws AppBusinessException;

    public Discuss getDiscussByDid(String id) throws AppBusinessException;

    public void insertDiscussTag(DiscussTag discussTag) throws AppBusinessException;

    public void insertDiscussTagDis(DiscussTagDis discussTagDis) throws AppBusinessException;

    public List<DiscussTag> getTagByCid(String cid) throws AppBusinessException;

    public CmsContent getinDiscussContentById(String id) throws AppBusinessException;

    public void updateDiscussAoumt(String id) throws AppBusinessException;

    public List<CmsContent> getContentListById(String amoyId, Integer num) throws AppBusinessException;

    public List<CmsContent> getAmoysList(Integer pageSize) throws AppBusinessException;

    public PageModel getCmsContentListForAmoy(String cel, Integer page) throws AppBusinessException;

    public PageModel getdislistt(String cel, String tagId, Integer page) throws AppBusinessException;

    public void insertDoingPic(String picUrl, String content, String huabaoId, String ip, Member member,Integer height200xxx,Integer width200xxx) throws Exception;

    public void deleteDiscussTagById(String tagId) throws AppBusinessException;

    public List<DiscussTagDis> getDTSList(String dId) throws AppBusinessException;

    public void deleteDis(String id) throws AppBusinessException;

    public void deleteDTSById(String id) throws AppBusinessException;

    //查询话题
    List<Discuss> getDiscussBruce(String time) throws AppBusinessException;

    //修改量值
    void updateDiscussAdd(Discuss discuss) throws AppBusinessException;
    
    public PageModel getPLCommentList(String plid,Integer page) throws AppBusinessException;
    
    public DoingPictorial getOneForcreator(String member,String plid)throws AppBusinessException;


}
